package nextoffer.baidu;

import java.util.Scanner;

public class Fi {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[][] arr = new int[n][2];
        int x, y;
        for (int i = 0; i < n; i++) {
            int flag = 0;
            x = in.nextInt();
            y = in.nextInt();
            if(x%2==0)flag ++;
            if(y%2==0)flag++;
            if (flag%2==1) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        }
    }
}
